package org.elanfox.intellicommunity.biz.dto.redis;

import lombok.Data;
import org.elanfox.intellicommunity.biz.entity.resident.UserPO;
import org.elanfox.intellicommunity.data.base.dto.BaseDTO;


/**
 * @author loutianxi
 * @date 2019-12-05
 */
@Data
public class RedisUserDTO implements BaseDTO {
    private Integer userId;
    private boolean delFlag;

    public RedisUserDTO() {
    }

    public RedisUserDTO(UserPO obj) {
        this.userId = obj.getUserId();
        this.delFlag = obj.isDelFlag();
    }
}
